<template>
    <div id="tags-view-container" class="tags-view-container">
        <div class="hamburger" style="padding: 0 2px;cursor: pointer;" @click="toggleClick">
            <svg
                    :class="{'is-active':sidebar.opened}"
                    class="hamburger"
                    viewBox="0 0 1024 1024"
                    xmlns="http://www.w3.org/2000/svg"
                    width="32"
                    height="32"
            >
                <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" />
            </svg>
        </div>
        <breadcrumb></breadcrumb>
    </div>
</template>

<script>
import {mapGetters} from 'vuex';
import Breadcrumb from '@/components/Breadcrumb';
export default {
    name: 'tagsBread',
    components: {
        Breadcrumb
    },
    computed: {
        ...mapGetters(['sidebar'])
    },
    methods: {
        toggleClick () {
            this.$store.dispatch('ToggleSideBar');
        }
    }
};
</script>

<style scoped lang="scss">
    .tags-view-container {
        display: flex;
        align-items: center;
        height: 34px;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #d8dce5;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
        .hamburger{
            display: inline-block;
            vertical-align: middle;
            width: 20px;
            height: 20px;
            .is-active {
                transform: rotate(180deg);
            }
        }
    }
</style>
